var id = location.search
function getData() {
  var dataUrl = 'http://81.71.65.4:3008/video/detail'+id
  // console.log(dataUrl)
  axios.get(dataUrl).then(function (result) {
        var list = result.data.data;
           var htmlStr =
              `<video autoplay="" controls style="width: 100%;" src="${list.videoUrl}"></video>

                <div class="details">
                    <p>"${list.title}</p>
                    <div>
                    <img src="${list.avatarurl}" alt="">
                    <p>${list.nickName}</p>
                    </div>
                </div>`
        document.querySelector('.main').innerHTML=htmlStr
      })
    }
    getData();